<div class="header"> 
    <h1 class="page-header">
        课程管理
    </h1>
    <ol class="breadcrumb">
        <li><a href="#">首页</a></li>
        <li class="active"><a href="#">课程列表</a></li>
    </ol> 

</div>
<div id="page-inner">
    <!-- 内容开始 -->
    <div class="row">

        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                列表 <a href="{:U('Course/add')}" class="btn btn-primary">添加</a>
                </div> 
                <div class="panel-body"> 
                    <div class="dataTables_wrapper form-inline">
                        <table class="table table-striped">
                          <thead>
                            <tr>
                              <th>id</th>
                              <th>课程名</th>
                              <th>分类</th>
                              <th>简介</th>
                              <th>操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <?php foreach($courseList as $k=>$v){?>
                            <tr>
                              <td><?php echo $v['id'] ?></td>
                              <td><?php echo $v['name'] ?></td>
                              <td><?php echo $v['type'] ?></td>
                              <td><?php echo $v['abstract'] ?></td>
                              <td>
                                <a href="<?php echo U('Course/edit',array('id'=>$v['id']));?>" >编辑</a>
                                <a href="<?php echo U('Course/del',array('id'=>$v['id']));?>" onclick="return confirm('是否删除')?true:false;">删除</a>
                              </td>
                            </tr>
                            <?php }?>
                          </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>                      
    </div>
    <!-- 内容结束 -->

</div>
<!-- /. PAGE INNER  -->
<script>

</script>